<?php
uses('model');

class clickModel extends Model {

    function __construct() {
        parent::__construct();
    }

    function click($v) {
        $this->dbconnect();

        list($table, $field) = explode(':', $v['table']);
        if ($this->table[$table] && $field) $this->db->Update($this->table[$table], array($field=>'{[+1]}'), "id={$v['id']}");
    }
}
?>